//
//  commentCell.m
//  NewIMGII
//
//  Created by 步遴 李 on 12-7-4.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
#define kOperaFrame CGRectMake(5, 5, 100, 30);
#define kFieldFrame CGRectMake(110, 10, 160, 20);
#import "commentCell.h"

@implementation commentCell
@synthesize textField,submitButton,operationLabel;

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];

    if (self) {
        // Initialization code.
		operationLabel = [[UILabel alloc] init];
		operationLabel.frame = kOperaFrame;
		operationLabel.textAlignment = UITextAlignmentRight;
		operationLabel.font = [UIFont fontWithName:@"Arial" size:14];
		[self addSubview:operationLabel];
		
		//UIImageView *imageview = [[UIImageView alloc] init];
		//imageview.frame = CGRectMake(0, 0, 20, 20);
		//imageview.image = [UIImage imageNamed:@"choose.png"];
		//imageview.backgroundColor = [UIColor cyanColor];
		
		
		textField = [[UITextView alloc] init];
		textField.frame = kFieldFrame;
		textField.font = [UIFont fontWithName:@"Arial" size:18];
		//loginField.backgroundColor = [UIColor purpleColor];
		//loginField.rightView = imageview;
        //textField.rightView = imageview;
		textField.textAlignment = UITextAlignmentLeft;
		//loginField.rightViewMode = UITextFieldViewModeWhileEditing;
		[self addSubview:textField];
    }
	self.selectionStyle = UITableViewCellSelectionStyleNone;
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state.
}
- (void)textViewDidBeginEditing:(UITextView *)textView
{
     NSLog(@"ddd");
}

- (void)dealloc {
    [super dealloc];
}


@end
